package com.usian.admin.feign;

import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-wemedia")
public interface WmNewsFeign {
    @GetMapping("/api/v1/news/findWmNewsFeignById/{id}")
    public WmNews findWmNewsFeignById(@PathVariable Integer id);
    @PostMapping("/api/v1/news/updateWmnews")
    public Boolean updateWmnews(@RequestBody WmNews wmNews);
    @GetMapping("/api/v1/user/findByUserId/{userId}")
    public WmUser findByUserId(@PathVariable Long userId);
}
